package ru.niir.goodfil.ui.models;

import ru.niir.goodfil.utils.DateFormat;

import java.util.Date;

public class ReceiptAndDebitingModel {

    private String goodCode;

    private String userName;

    private int goodCount;

    private String operationType;

    private String comment;

    private Date date;

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getGoodCount() {
        return goodCount;
    }

    public void setGoodCount(int goodCount) {
        this.goodCount = goodCount;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDateAsString(){
        return DateFormat.FormatDateAndTime(getDate());
    }
}
